﻿namespace Atlantis.Net.Irc
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class JoinPartEventArgs : EventArgs
    {

        public JoinPartEventArgs(string nick, string channel, string userHost)
        {
            Nick = nick;
            Channel = channel;
            UserHost = userHost;
        }

        #region Properties

        private string m_Channel = String.Empty;
        /// <summary>
        ///     Gets the channel that was just joined or parted
        /// </summary>
        public string Channel
        {
            get { return m_Channel; }
            private set { m_Channel = value; }
        }

        private string m_Nick = String.Empty;
        /// <summary>
        ///     Gets the nick that triggered the join or part event
        /// </summary>
        public string Nick
        {
            get { return m_Nick; }
            private set { m_Nick = value; }
        }

        private string m_UserHost = String.Empty;
        /// <summary>
        ///     Gets the host of the user that joined or parted the channel
        /// </summary>
        public string UserHost
        {
            get { return m_UserHost; }
            private set { m_UserHost = value; }
        }

        #endregion

    }
}
